package com.jmb.apiplatform.service;


import com.jmb.apiplatform.common.PageResult;
import com.jmb.apiplatform.exception.ValidException;
import com.jmb.apiplatform.pojo.PermissionRoleDao;
import com.jmb.apiplatform.pojo.RoleDao;
import com.jmb.apiplatform.pojo.RoleVO;

import java.util.List;

/**
* @author jinmengbo
* @description 针对表【role】的数据库操作Service
* @createDate 2024-12-17 18:33:54
*/
public interface RoleService  {
    String findRoleName(String name);
    void saveRole(RoleDao roleDao) throws ValidException;
    PageResult<RoleDao> roleList(RoleVO roleVO);

    RoleDao findId(Integer id);

    void editRole(RoleDao roleDao) throws ValidException;

    void removeId(Integer id) throws ValidException;

    List<RoleDao> allStatus(Integer status) throws ValidException;

    String findIdName(Integer roleId) throws ValidException;


    List<Integer> checkpermissionId(Integer id) throws ValidException;

    void saveRolePermission(PermissionRoleDao permissionRoleDao) throws ValidException;

    void removePermissionRole(PermissionRoleDao permissionRoleDao) throws ValidException;

    List<String> readPermission(Integer roleId) throws ValidException;
}
